﻿<form method="POST" id="exportForm" action="@ViewBag.DataUrl">
    @{
        if (ViewBag.SeaechCondition != null && !string.IsNullOrEmpty(ViewBag.SeaechCondition.ToString()))
        {
            var str = ViewBag.SeaechCondition.ToString();
            foreach (var condition in str.Split('&'))
            {
                var item = condition.ToString();
                <input name="@item.Split('=')[0]" type="hidden" value="@item.Split('=')[1]" />
            }
        }
    }
    <input name="export" type="hidden" value="true" />

    <div class="form-group moduleList">
        <div class="col-sm-11">
            <h5 style="float: left; width: 150px; text-align: right">请选择要导出的列</h5>
            <div class="contents">
                <ul>
                    @foreach (var item in (Dictionary<string, string>)ViewBag.ColumsTitle)
                    {
                        <li>
                            <label>
                                <input type="checkbox" checked="checked" value="@(item.Key+"|"+item.Value)" name="ExportTitles" class="ace actionid exportTitles">
                                <span class="lbl"> @item.Value</span>
                            </label>
                        </li>
                    }
                </ul>
            </div>
        </div>
        <div class="col-sm-12 clear"></div>
    </div>
</form>
<script src="~/Areas/Admin/js/Home/Export.js"></script>
<style type="text/css">

    .moduleList .contents {
        margin-left: 10px;
        float: left;
    }

    .moduleList ul li {
        list-style-type: none;
        float: left;
        line-height: 36px;
        padding: 0px 10px;
    }
</style>